    $('.btnAccept').on('click',function(){
        var e_id = $(this).attr('e_id');
        // update here
        //$(this).parent().css('border','5px solid red');
        var cur = $(this);
        var loading = "Processing  <img src= '../images/loading.gif'/>";
        $(this).parent().html(loading);
        acceptEmployer(e_id).done(function(result){
         
            if(result.status == "true"){
                $('#e_id_'+e_id).fadeOut(2000);
                //window.location.reload();
                
            }
        });

    });

    $('.btnDecline').on('click',function(){
        var e_id = $(this).attr('e_id');
        // update here
        //$(this).parent().css('border','5px solid red');
        var cur = $(this);
        var loading = "Processing  <img src= '../images/loading.gif'/>";
        $(this).parent().html(loading);
        declineEmployer(e_id).done(function(result){
            if(result.status == "true"){
                $('#e_id_'+e_id).fadeOut(2000);
               // window.location.reload();

            }
        });

    });

    function acceptEmployer(e_id)
    {
      var params = {};
      params.e_id = e_id;
        return $.ajax({
            url: '../api/accept_employer_signup.php',
            data: params,
            type: 'post',
            dataType: 'json'
        });
    }

    function declineEmployer(e_id)
    {
      var params = {};
      params.e_id = e_id;
        return $.ajax({
            url: '../api/decline_employer_signup.php',
            data: params,
            type: 'post',
            dataType: 'json'
        });
    }
